<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
					
					#d1{
						background-image: url(全选图片/list_bg.gif);
						background-repeat: no-repeat;
						background-size: 1200px,700px;
					}
					
					td {
						border: 1px solid gainsboro;
						width: 200px;
						height: 100px;
						text-align: center;
						border-style: none none dashed;
					}
				</style>
			</head>
			<body>
				<table>
						<tr id="d1">
							<td><input type="checkbox" id="check">全选</td>
							<td>商品图片</td>
							<td>商品名称/出售者/联系方式</td>
							<td>价格</td>
						</tr>
					</thead>
					<tbody id="tbody">
						<tr>
							<td><input type="checkbox" name="user"></td>
							<td><img src="全选图片/list0.jpg" alt=""></td>
							<td>杜比环绕，家庭影院必备，超真实享受<p>出售者:ling112233</p>
							<p ><img id="i7" src="全选图片/online_pic.gif" alt=""><img src="全选图片/list_tool_fav1.gif"/>收藏</p>
							</td>
							<td>一口价<p>2833.0</p>
							</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="user"></td>
							<td><img src="全选图片/list1.jpg" alt=""></td>
							<td>NVIDIA 9999GT 512MB 256bit极品显卡，不容错过<p>出售者:aipiaopiao110</p>
							<p ><img src="全选图片/online_pic.gif" alt=""><img src="全选图片/list_tool_fav1.gif"/>收藏</p>
							</td>
							<td>一口价<p>6464.0</p>
							</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="user"></td>
							<td><img src="全选图片/list2.jpg" alt=""></td>
							<td>极品热卖：高清晰，30寸等离子电视<p>出售者:阳光的挣扎</p>
							<p ><img src="全选图片/online_pic.gif" alt=""><img src="全选图片/list_tool_fav1.gif"/>收藏</p>
							</td>
							<td>一口价<p>18888.0</p>
							</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="user"></td>
							<td><img src="全选图片/list3.jpg" alt=""></td>
							<td>Sony索尼家用最新款笔记本<p>出售者:疯狂的镜无</p>
							<p ><img src="全选图片/online_pic.gif" alt=""><img src="全选图片/list_tool_fav1.gif"/>收藏</p>
							</td>
							<td>一口价<p>5889.0</p>
							</td>
						</tr>
					</tbody>
				</table>
	</head>
	<body>
		<script>
				document.getElementById("check").onclick = function() {
					var checked = document.getElementById("check").checked;
					var checkson = document.getElementsByName("user");
					if (checked) {
						for (var i = 0; i < checkson.length; i++) {
							checkson[i].checked = true;
						}
					} else {
						for (var i = 0; i < checkson.length; i++) {
							checkson[i].checked = false;
						}
					}
				}
			</script>
	</body>
</html>